Skip to content

Conversation

@Technoboy-
Copy link
Contributor

Motivation

Implementation of PIP-446

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

@Technoboy- Technoboy- self-assigned this Oct 18, 2025
@Technoboy- Technoboy- added this to the 4.2.0 milestone Oct 18, 2025
@Technoboy- Technoboy- added ready-to-test area/client type/feature The PR added a new feature or issue requested a new feature labels Oct 18, 2025
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Oct 18, 2025
@lhotari lhotari requested a review from asafm November 17, 2025 16:55
@lhotari
Copy link
Member

lhotari commented Nov 17, 2025

@asafm Do you have a chance to review this PR?

@asafm
Copy link
Contributor

asafm commented Nov 17, 2025

@lhotari yes. This was the only comment I saw.

@asafm
Copy link
Contributor

asafm commented Nov 18, 2025

@lhotari yes. This was the only comment I saw.

Sorry @lhotari I confused with the other one. This one I didn't review

Copy link
Contributor

@poorbarcode poorbarcode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have one suggestion, it should be useful to determine client-side publish latency issue

  • Should we add more events for producers, to let us to record more spans? Such as follows
    • users call send -> cache message with message container
    • publish message to broker -> receive broker response


@Override
public void close() {
// No cleanup needed - spans are attached to messages
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// No cleanup needed - spans are attached to messages
// Producer will fail pending messages when it being closed, which will trigger the `onSendAcknowledgement` events

@Override
public Message beforeSend(Producer producer, Message message) {
// Initialize tracer from producer on first call
initializeIfNeeded(producer);
Copy link
Contributor

@poorbarcode poorbarcode Dec 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we treat the first and last parts of a chunked message differently?

Copy link
Contributor

@poorbarcode poorbarcode Dec 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please ignore this comment channel, because sendComplete already covered the case here: https://github.com/apache/pulsar/blob/v4.1.2/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ProducerImpl.java#L1372-L1381

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/client doc-not-needed Your PR changes do not impact docs ready-to-test type/feature The PR added a new feature or issue requested a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants